home *** CD-ROM | disk | FTP | other *** search
- from PSPApp import *
-
- def ScriptProperties():
- return {
- 'Author': u'Corel Corporation',
- 'Copyright': u'Copyright (c) 2002-2006 Corel Corporation. All rights reserved.',
- 'Description': "Convert the current layer or selection to greyscale. Only supports BGR and BGRA data.",
- 'Host': u'Paint Shop Pro',
- 'Host Version': u'8.00'
- }
-
- def Do(Environment):
- App.Do(Environment, 'UserDefinedFilter', {
- 'ApplyToRed': App.Constants.Boolean.false,
- 'Bias': 0,
- 'ApplyToGreen': App.Constants.Boolean.false,
- 'Divisor': 1,
- 'ApplyToGrey': App.Constants.Boolean.true,
- 'ApplyToBlue': App.Constants.Boolean.false,
- 'Kernel': ((0,0,0,0,0,0,0),(0,0,0,0,0,0,0),(0,0,0,0,0,0,0),(0,0,0,1
- ,0,0,0),(0,0,0,0,0,0,0),(0,0,0,0,0,0,0),(0,0,0,0,0,0,0)),
- 'GeneralSettings': {
- 'ExecutionMode': App.Constants.ExecutionMode.Silent,
- }
- })
-
-